<template>
	<view>
		<view class="uni-margin-wrap">
			<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
				:duration="duration">
				<swiper-item v-for="(item,index) in swiperArray" :key="index">
					<view class="swiper-item">
						<image class="swiper-item-image" :src="item.imgUrl" mode=""></image>
					</view>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>
<script>
	export default {
		props: {
			swiperArray: Array
		},
		data() {
			return {
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500
			}
		}
	}
</script>

<style>
	.uni-margin-wrap {
		width: 690rpx;
		width: 100%;
		;
	}

	.swiper {
		height: 750rpx;
	}

	.swiper-item {
		display: block;
		height: 750rpx;
		line-height: 750rpx;
		text-align: center;
	}

	.swiper-item-image {
		width: 100%;
		height: 100%;
	}
</style>
